package com.qfedu.yanglao20app.adhibition.service.impl;

import com.qfedu.yanglao20.entity.adhibition.Adhibition;
import com.qfedu.yanglao20app.adhibition.dao.AdhibitionDao;
import com.qfedu.yanglao20app.adhibition.service.AdhibitionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * User:  yunk
 * Date 2023/5/16  20:24
 */

@Service
public class AdhibitionServiceImpl implements AdhibitionService {

    @Resource
    private AdhibitionDao adhibitionDao;

    @Override
    public List<Adhibition> selectAll() {
        List<Adhibition> adhibitions = adhibitionDao.selectList(null);
        return adhibitions;
    }

    @Override
    public Adhibition selectById(Integer id) {
        Adhibition adhibition = adhibitionDao.selectById(id);
        return adhibition;
    }
}
